<?php
class Chidoansv extends AppModel {
	var $name = 'Chidoansv';
	var $validate = array(
		'khoahoc_id' => array(
			'numeric' => array(
				'rule' => array('numeric'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'khoa_id' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'Khoahoc' => array(
			'className' => 'Khoahoc',
			'foreignKey' => 'khoahoc_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Khoa' => array(
			'className' => 'Khoa',
			'foreignKey' => 'khoa_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Loaicdsv' => array(
			'className' => 'Loaicdsv',
			'foreignKey' => 'chidoansv_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Phicdsv' => array(
			'className' => 'Phicdsv',
			'foreignKey' => 'chidoansv_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Phongtraosv' => array(
			'className' => 'Phongtraosv',
			'foreignKey' => 'chidoansv_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Sinhvien' => array(
			'className' => 'Sinhvien',
			'foreignKey' => 'chidoansv_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
